<template>
Zi4组件 <br>
  <button @click="get">取出数据</button>
  <hr>

</template>

<script setup >
const get=()=>{
  //parse 字符串转换为对象
  console.log(JSON.parse(sessionStorage.getItem("user")));
}

</script>

<style scoped>

</style>